---
id: 656f0d6bc60b58b9777a36c9
title: Step 34
challengeType: 20
dashedName: step-34
---

# --description--

A character class is indicated by square brackets and matches one character among those specified between the brackets. For example, `ma[dnt]` matches either `mad`, `man`, or `mat`.

Modify your pattern to match a `w` followed by either `h` or `a`.

# --hints--

Your pattern should use a character class to match a `w` followed by either `h` or `a`.

```js
({ test: () => assert(__pyodide.runPython(`
    regex = __locals.get("pattern")
    regex == "w[ha]" or regex == "w[ah]"    
  `))
})
```

# --seed--

## --seed-contents--

```py
import re
import secrets
import string


def generate_password(length, nums, special_chars, uppercase, lowercase):
    # Define the possible characters for the password
    letters = string.ascii_letters
    digits = string.digits
    symbols = string.punctuation

    # Combine all characters
    all_characters = letters + digits + symbols

    while True:
        password = ''
        # Generate password
        for _ in range(length):
            password += secrets.choice(all_characters)
        
        constraints = [
            (nums, '')
        ]        

    return password
    
# new_password = generate_password(8)
# print(new_password)
--fcc-editable-region--
pattern = 'l+'
quote = 'Not all those who wander are lost.'
print(re.findall(pattern, quote))
--fcc-editable-region--
```
